import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
    {
      path: '/about',
      name: 'about',
      component: () => import('./views/About.vue')
    },{
      path:'/recommend',
      name:'recommend',
      component: () => import('./views/Recommend.vue'),
      children:[{
        path:'/recommend/',
        name:'rec_mr',
        component: () => import('./views/Every_day.vue'),
      },{
          path:'/recommend/every_day',
          name:'every_day',
          component: () => import('./views/Every_day.vue'),
        }
      ]
    },{
      path:'/sharing',
      name:'sharing',
      component: () => import('./views/Sharing.vue'),  
      children: [
        {
          path:'/sharing/shar_xq',
          name:'shar_xq',
          component: () => import('./views/Shar_xq.vue') 
        },{
          path:'/sharing/',
          name:'shar_mr',
          component: () => import('./views/Shar_xq.vue') 
        }
      ]
    },{
      path:'/information',
      name:'information',
      component: () => import('./views/Information.vue'),
      children: [
        {
          path:'/information/',
          name: 'blog_mr',
          component: () => import('./views/Blog_xq.vue'),
        },{
          path:'/information/blog',
          name: 'blog_xq',
          component: () => import('./views/Blog_xq.vue'),
        }
      ]    
    },{
      path:'/details',
      name:'details',
      component: () => import('./views/Details.vue')    
    },{
      path:'/contribute',
      name:'contribute',
      component: () => import('./views/Contribute.vue')    
    }
  ]
})
